<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        function Person() {
            this.name = 'name',
            this.age = 14
        }

        function Man() {
        }
        // 原型继承
        Man.prototype = new Person()
        // 重新指向构造
        Man.prototype.constructor = Man

        function Woman() {
        }
        
    </script>
</body>
</html>